package com.code.adapter;

/**
 * <p>二相转三相适配器</p>
 *
 * @author hwf
 * @version 1.0
 * @date 2021/12/13 22:37
 */
public class TwoJackAdapter implements ThreeJack {

    private GBTwoJack twoJack;

    public TwoJackAdapter(GBTwoJack twoJack) {
        this.twoJack = twoJack;
    }

    @Override
    public void powerWithThree() {
        System.out.println("通过转换");
        twoJack.powerWithTwo();
    }
}
